package com.colin.aiyi.adapter;


import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.colin.aiyi.R;
import com.colin.aiyi.entity.response.RoleResponse;


public class RoleAdapter extends BaseQuickAdapter<RoleResponse.DataBean,BaseViewHolder> {

    public RoleAdapter() {
        super(R.layout.item_role);
       // this.context = context;
    }


    @Override
    protected void convert(BaseViewHolder helper, final RoleResponse.DataBean item) {
        TextView textView=helper.getView(R.id.text);
        helper.setText(R.id.text,item.getParamName());
        if (item.isSelcet()){
            textView.getBackground().setLevel(1);
        }else {
            textView.getBackground().setLevel(0);
        }
    }
}
